
package com.woniuxy.amusementparkos.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 *
 * @author fzw
 *
 * 2020年5月6日下午12:02:30
 */
@Configuration
public class MvcConfiguration implements WebMvcConfigurer {
	@Override
	public void addViewControllers(ViewControllerRegistry registry) {
		//Shiro映射路径
//		registry.addViewController("/login").setViewName("/login.html");
		//fzw路径映射
		registry.addViewController("/addUser").setViewName("/fzw/addUser.html");
		registry.addViewController("/addRole").setViewName("/fzw/addRole.html");
		registry.addViewController("/addMenu").setViewName("/fzw/addMenu.html"); 
		registry.addViewController("/addPower").setViewName("/fzw/addPower.html"); 
		registry.addViewController("/editUser").setViewName("/fzw/editUser.html");
		registry.addViewController("/editRole").setViewName("/fzw/editRole.html");
		registry.addViewController("/editMenu").setViewName("/fzw/editMenu.html");
		registry.addViewController("/editPower").setViewName("/fzw/editPower.html");
		registry.addViewController("/user/userManagement").setViewName("/fzw/userManagement.html");
		registry.addViewController("/user/roleManagement").setViewName("/fzw/roleManagement.html");
		registry.addViewController("/user/organizationManagement").setViewName("/fzw/organizationManagement.html");
		registry.addViewController("/user/powerManagement").setViewName("/fzw/powerManagement.html");
		registry.addViewController("/user/powerManagement").setViewName("/fzw/powerManagement.html");
		registry.addViewController("/user/main.html").setViewName("redirect:/main.html");
//		registry.addViewController("/user/build/css/nprogress.cs").setViewName("redirect:/build/css/nprogress.cs");
//		registry.addViewController("/user/build/css/message.css").setViewName("redirect:/build/css/message.css");
		
		registry.addViewController("/user/menuManagement").setViewName("/fzw/menuManagement.html");
		registry.addViewController("/addOrganization").setViewName("/fzw/addOrganization.html");
		registry.addViewController("/editOrganization").setViewName("/fzw/editOrganization.html");
		//index.html路径映射跳转到templates文件下去寻找对应html文件：
		// 李智闻
		registry.addViewController("/shiftExchangeInfo").setViewName("/lzw/交接班.html");
		registry.addViewController("/imprestInfo").setViewName("/lzw/备用金.html");
		registry.addViewController("/settlement").setViewName("/lzw/强制结算.html");
		registry.addViewController("/extractMoneyInfo").setViewName("/lzw/抽大钞.html");
		registry.addViewController("/userAdjustMoneyInfo").setViewName("/lzw/腕带金额调整.html");
		registry.addViewController("/adjustMoneyInfo").setViewName("/lzw/腕带费用调整-后台.html");

		registry.addViewController("/userStatistics").setViewName("/lvd/userStatistics.html");
		registry.addViewController("/forcedSettlement").setViewName("/lvd/forcedSettlement.html");
		registry.addViewController("/adjustMoneyInfo").setViewName("/lzw/腕带费用调整-后台.html");
		registry.addViewController("/adjustMoneyInfo").setViewName("/lzw/腕带费用调整-后台.html");
		registry.addViewController("/adjustMoneyInfo").setViewName("/lzw/腕带费用调整-后台.html");
	}
	  @Override
	    public void addInterceptors(InterceptorRegistry registry) {
	  }
}
